
var api = require('../../utils/api.js');
var app = getApp();
Page({
    data: {
        tophe:0
    },
    currentPageNumber: 1,
        onLoad() {
        var file=api.FIlE;
        this.setData({
            bg:file
        })
        this.getmyteam();
    },
    onShow() {
        let jn = wx.getMenuButtonBoundingClientRect();

        console.log(jn);
        var tophe=jn.top+jn.height;
        this.setData({
            tophe:tophe,
            over:jn.top
        })
     
    },
    back(){
        wx.navigateBack()
    },
    getmyteam(){
        var that=this;
        api.post({
            url: 'user/getmyteam',
            data: {},
            success: data => {
                that.setData({
                    teams: data.data
                });
            },
        });

    }


});
